GetSetting Function

The GetSetting Function is among the core of the RegEasy Server's functions. GetSetting retrieves settings from the registry and returns the decrypted value, if Encryption is true. The properties that are necessary to set prior to calling the GetSetting Function are as follows:

Dim X As String
With Reg
    .RegKey = CURUSER
    .SubKey = Main_Sub_Key 'constant can be declared in the class file or use the string in quotes
    .vType = "String"
    .Name = "MyValue"
    'Encryption defaults to true
    X = .GetSetting
End With

(c)1998 Silicon Prairie Software Co. All rights reserved.